package com.hwh.serviceIm;

import java.util.ArrayList;

import com.hwh.dao.BuyersDao;
import com.hwh.daoIm.BuyersDaoImp;
import com.hwh.service.BuyersService;
import com.hwh.vo.Buyers;

public class BuyersServiceImpl implements BuyersService{
	//查询全部买家用户
	public ArrayList<Buyers> getBuyers(){
		ArrayList<Buyers> buyers = new ArrayList<Buyers>();
		BuyersDao buyersDaoImpl = new BuyersDaoImp();
		buyers = buyersDaoImpl.getBuyers();
		return buyers;
	}
	
	//买家用户登录
	public Buyers buyerLogin(Buyers buy) {
		BuyersDaoImp bdi = new BuyersDaoImp();
		Buyers buyers = bdi.buyerLogin(buy); 
		return buyers;
		
	}
	
	//买家用户注册
	public void buyerRegist(Buyers buyer) {
		BuyersDaoImp bdi = new BuyersDaoImp();
		bdi.buyerRegist(buyer);
		
	}
	
	
}
